<div class="nav">
    <a class="sel" href="{:U('index')}">模型列表</a>
    <a href="{:U('add')}">添加模型</a>
</div>
<div class="list">
    <table class="table_list">
        <thead><tr>
                <td>模型名称</td>
                <td>顺序编号</td>
                <td>是否启用</td>
                <td>操作</td>
            </tr>
        </thead>
        <tbody>
        <foreach name="list" item="list">
            <tr>
                <td>{$list.model_name}</td>
                <td class="edit_input" attr_t="order_id" attr_id="{$list.model_id}">{$list.order_id}</td>
                <td class="edit_toggle" attr_t="is_enable" attr_id="{$list.model_id}">{$list.is_enable}</td>
                <td><a class="btn_a3" href="{:U('attr_index',Array('model_id'=>$list['model_id']))}">管理属性</a>&nbsp;
                    <a class="btn_a" href="{:U('edit',Array('model_id'=>$list['model_id']))}">修改</a>&nbsp;
                    <a class="btn_a2" href="{:U('del',Array('model_id'=>$list['model_id']))}" onclick="return confirm('确定删除吗？这将删除所有关联的属性及商品值')">删除</a></td>
            </tr>
        </foreach>
        </tbody>
    </table>
</div>
